<form id="changePassForm"  onsubmit="return false;"
      action="/pass/ajax_update" method="post" class='form-horizontal validate-form'
      style='padding-top: 20px'>
    <div class="form-group">
        <label class="col-sm-2 control-label">旧密码<span
                    class="nowrap"></span></label>
        <div class='col-sm-5'>
            <input type="password" name="oldpassword"
                   title="请输入密码" placeholder="请输入密码"
                   value="" class="layui-input required">
            <span style="display: inline-block;">&nbsp;</span>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">新密码<span
                    class="nowrap"></span></label>
        <div class='col-sm-5'>
            <input id="newpassword" type="password" name="newpassword"
                   title="请输入密码" placeholder="请输入密码"
                   value="" class="layui-input required">
            <span style="display: inline-block;">&nbsp;</span>
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label">确认新密码<span
                    class="nowrap"></span></label>
        <div class='col-sm-5'>
            <input type="password" equalTo="#newpassword" name="newpassword1"
                   title="确保两次输入密码一致" placeholder="确认新密码" value=""
                   class="layui-input required">
            <span style="display: inline-block;">&nbsp;</span>
        </div>
    </div>
    <div class="hr-line-dashed"></div>

    <div class="col-sm-4 col-sm-offset-2">
        <div class="layui-form-item text-center">
            <button  class="layui-btn" type="submit">保存配置</button>
        </div>
    </div>
</form>